<template>
   <div>
     <button @click="add">+</button>
     <span>{{count}}</span>
     <button @click="minus">-</button>
   </div>
</template>

<script>

export default {
  name:'my-count',
  data(){
    return {count:1}
  },
  methods:{
    add(){
      this.count++
    },
    minus(){
      this.count--
    }
  }
}
</script>
